package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.base.IBasePresenter;
import com.kelvin.paopao.module.login.register.updateAvatar.IUpdateAvatarPresenter;
import com.kelvin.paopao.module.login.register.updateAvatar.UpdateAvatarActivity;
import com.kelvin.paopao.module.login.register.updateAvatar.UpdateAvatarPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/8.
 */

@Module
public class UpdateAvatarModule {

    private UpdateAvatarActivity mView;

    public UpdateAvatarModule(UpdateAvatarActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IUpdateAvatarPresenter providePresenter() {
        return new UpdateAvatarPresenter(mView);
    }
}
